const fs = require("fs");

let mod = {};
// 获取modules内文件
const module_files = fs.readdirSync(__dirname + "/modules");
for (let i of module_files) {
	if (i.endsWith(".js")) {
		const name = i.split('.')[0] + 'Model';
		const model = require("./modules/" + i);
		mod[name] = model;
	}
}
module.exports = mod;
